
<template>
  <el-row class="tac sidebar">
    <el-col class>
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        :router="true"
        :unique-opened="true"
      >
        <el-menu-item index="/dashboard">
          <i class="iconfont icon-a-ziyuan2"></i>
          <span slot="title">首页</span>
        </el-menu-item>
        <el-submenu index="2">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan3"></i>
            <span>我参加的</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/activity">参加的活动</el-menu-item>
            <el-menu-item index="/activity_order">我的活动订单</el-menu-item>
            <el-menu-item index="/group">参加的团队</el-menu-item>
            <el-menu-item index="/group_sq">我申请的团队</el-menu-item>
            <el-menu-item index="/manage">管理的团队</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="3">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan4"></i>
            <span>我的活动</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/release">发布活动</el-menu-item>
            <el-menu-item index="/my_activities">我的活动</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="4">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan5"></i>
            <span>我的团队</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/create">创建团队</el-menu-item>
            <el-menu-item index="/my_group">我的团队</el-menu-item>
            <el-menu-item index="/apply">成员申请</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="5">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan6"></i>
            <span>我的故事</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/write_story">写故事</el-menu-item>
            <el-menu-item index="/my_story">我的故事</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="8">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan8"></i>
            <span slot="title">我的收藏</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/collect">收藏的活动</el-menu-item>
            <el-menu-item index="/collect_team">收藏的团队</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-menu-item index="/footprint">
          <i class="iconfont icon-a-ziyuan9"></i>
          <span slot="title">我的足迹</span>
        </el-menu-item>
        <el-submenu index="12">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan10"></i>
            <span slot="title">系统消息</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/information">未读消息</el-menu-item>
            <el-menu-item index="/information_y">已读消息</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="11">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan11"></i>
            <span slot="title">财务中心</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/finance">财务概况</el-menu-item>
            <el-menu-item index="/finance_bank">收款账号</el-menu-item>
            <el-menu-item index="/finance_list">收款明细</el-menu-item>
            <el-menu-item index="/finance_out">提现记录</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="10">
          <template slot="title">
            <i class="iconfont icon-a-ziyuan12"></i>
            <span>我的账号</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/personal">个人资料</el-menu-item>
            <el-menu-item index="/password">修改密码</el-menu-item>
            <el-menu-item index="/verified">实名认证</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-col>
  </el-row>
</template>




<script>
export default {
  data() {
    return {

    };
  },
  methods: {
    handleOpen(key, keyPath) {
      //console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      //console.log(key, keyPath);
    },
  },
  computed: {},
};
</script>
<style scoped>
/* 左侧 */
.sidebar {
  display: block;
  position: absolute;
  left: 0;
  top: 3.75rem;
  bottom: 0;
  overflow-y: scroll;
  width: 12.5rem;
}
.sidebar::-webkit-scrollbar {
  width: 0;
}
.sidebar-el-menu:not(.el-menu--collapse) {
  width: 15.625rem;
}
.sidebar > ul {
  height: 100%;
}
.el-menu {
  border-right: none;
}
.el-menu > li .iconfont {
  font-size: 1.25rem;
  color: #c2cfe0;
  margin-right: 0.625rem;
}
.el-menu-vertical-demo > .is-opened .el-menu-item {
  background: #fff;
  /* background: rgba(197, 226, 249, 0.39); */
}
.el-submenu.is-opened,
.el-menu-item.is-active {
  background: rgba(197, 226, 249, 0.39);
}

@media (max-width:990px) {
 .sidebar{
   width: 100%;
   position: relative;
   top: 0;
 }
 .el-submenu__title {
    height: 45px;
    line-height: 45px;
 }
 .el-submenu .el-menu-item {
   line-height: 40px;
   height: 40px;
   font-size: 12px;
 }
}
</style>
